<?php

namespace App\Http\Controllers\YApi;

//use Illuminate\Http\Request;
use Request;
use App\Http\Requests;
use App\Http\Controllers\Controller;

use Session;
use Redirect;

use App\Models\Category;

class CategoryController extends Controller
{

    public function category()
    {
        //分类列表
        $category = Category::get();
        
        return $category;
    }
    
}